import request from "@/utils/request";

const isLocal = window.location.origin.includes("localhost");
const origin = window.location.origin;
enum Api {
  result = "/api/statis/getResult",
}
const mapApi = {
  //获取区域颜色
  getFiveColorMapColor() {
    return request({
      url: isLocal
        ? `${Api.result}?key=cockpit/fiveColorMap/color`
        : `${origin}${Api.result}?key=cockpit/fiveColorMap/color`,
      method: "get",
    });
  },
};

export default mapApi;
